package com.jade.zsy.finance.facade.impl;

import com.jade.bss.DbException;
import com.jade.bss.base.customer.Customer;
import com.jade.bss.base.utils.CopyBean;
import com.jade.bss.db.impl.BaseFacadeImpl;
import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.criterion.Restrictions;
import com.jade.framework.base.util.PagingList;
import com.jade.framework.base.util.PagingResult;
import com.jade.zsy.finance.dao.PayableDetailDao;
import com.jade.zsy.finance.entity.PayableDetail;
import com.jade.zsy.finance.service.PayableDetailFacade;
import com.jade.zsy.finance.service.ReceiptsDetailFacade;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.inject.Inject;
import javax.inject.Named;

/**
 * 商品管理
 * User: jinya
 * Date: 2017/5/24
 * Time: 15:41
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Service("ReceiptsDetailFacade")
public class ReceiptsDetailFacadeImpl extends BaseFacadeImpl implements ReceiptsDetailFacade {
    @Inject
    @Named("PayableDetailDao")
    private PayableDetailDao entityDao;
    @Override
    @Transactional
    public void save(Object obj) throws DbException {
        PayableDetail entity=(PayableDetail)obj;
        entity.setOwnerId("1");
        super.save(entity);
    }

}